package org.dev.vlp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName vlp_secenry
 */
@TableName(value ="vlp_secenry")
@Data
public class Secenry implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer rowId;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String location;

    /**
     * 
     */
    private String desPort;

    /**
     * 
     */
    private String desCh;

    /**
     * 
     */
    private String image;

    /**
     * 
     */
    private Integer lan;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Secenry other = (Secenry) that;
        return (this.getRowId() == null ? other.getRowId() == null : this.getRowId().equals(other.getRowId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
            && (this.getDesPort() == null ? other.getDesPort() == null : this.getDesPort().equals(other.getDesPort()))
            && (this.getDesCh() == null ? other.getDesCh() == null : this.getDesCh().equals(other.getDesCh()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getLan() == null ? other.getLan() == null : this.getLan().equals(other.getLan()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRowId() == null) ? 0 : getRowId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
        result = prime * result + ((getDesPort() == null) ? 0 : getDesPort().hashCode());
        result = prime * result + ((getDesCh() == null) ? 0 : getDesCh().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getLan() == null) ? 0 : getLan().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rowId=").append(rowId);
        sb.append(", name=").append(name);
        sb.append(", location=").append(location);
        sb.append(", desPort=").append(desPort);
        sb.append(", desCh=").append(desCh);
        sb.append(", image=").append(image);
        sb.append(", lan=").append(lan);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}